home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / GCC 1.37.1r15 / Manual / Info / gcc.info-1 < prev    next >
Encoding:
Text File  |  1990-03-14  |  21.3 KB  |  489 lines  |  [TEXT/MPS ]

  1. Info file gcc.info, produced by Makeinfo, -*- Text -*- from input
  2. file gcc.texinfo.
  3.  
  4. This file documents the use and the internals of the GNU compiler.
  5.  
  6. Copyright (C) 1988, 1989 Free Software Foundation, Inc.
  7.  
  8. Permission is granted to make and distribute verbatim copies of this
  9. manual provided the copyright notice and this permission notice are
  10. preserved on all copies.
  11.  
  12. Permission is granted to copy and distribute modified versions of
  13. this manual under the conditions for verbatim copying, provided also
  14. that the sections entitled ``GNU General Public License'' and
  15. ``Protect Your Freedom--Fight `Look And Feel''' are included exactly
  16. as in the original, and provided that the entire resulting derived
  17. work is distributed under the terms of a permission notice identical
  18. to this one.
  19.  
  20. Permission is granted to copy and distribute translations of this
  21. manual into another language, under the above conditions for modified
  22. versions, except that the sections entitled ``GNU General Public
  23. License'' and ``Protect Your Freedom--Fight `Look And Feel''' and
  24. this permission notice may be included in translations approved by
  25. the Free Software Foundation instead of in the original English.
  26.  
  27.  
  28. 
  29. File: gcc.info,  Node: Top,  Next: Copying,  Up: (DIR)
  30.  
  31. Introduction
  32. ************
  33.  
  34. This manual documents how to run, install and port the GNU C
  35. compiler, as well as its new features and incompatibilities, and how
  36. to report bugs.
  37.  
  38. * Menu:
  39.  
  40. * Copying::         GNU General Public License says
  41.                      how you can copy and share GNU CC.
  42. * Contributors::    People who have contributed to GNU CC.
  43. * Boycott::        Protect your freedom--fight ``look and feel''.
  44. * Options::         Command options supported by `gcc'.
  45. * Installation::    How to configure, compile and install GNU CC.
  46. * Trouble::         If you have trouble installing GNU CC.
  47. * Incompatibilities:: Incompatibilities of GNU CC.
  48. * Extensions::      GNU extensions to the C language.
  49. * Bugs::            How to report bugs (if you want to get them fixed).
  50. * Portability::     Goals of GNU CC's portability features.
  51. * Interface::       Function-call interface of GNU CC output.
  52. * Passes::          Order of passes, what they do, and what each file is for.
  53. * RTL::             The intermediate representation that most passes work on.
  54. * Machine Desc::    How to write machine description instruction patterns.
  55. * Machine Macros::  How to write the machine description C macros.
  56. * Config::          Writing the `xm-MACHINE.h' file.
  57.  
  58.  
  59. 
  60. File: gcc.info,  Node: Copying,  Next: Contributors,  Prev: Top,  Up: Top
  61.  
  62. GNU GENERAL PUBLIC LICENSE
  63. **************************
  64.  
  65.                         Version 1, February 1989
  66.  
  67.      Copyright (C) 1989 Free Software Foundation, Inc.
  68.      675 Mass Ave, Cambridge, MA 02139, USA
  69.      
  70.      Everyone is permitted to copy and distribute verbatim copies
  71.      of this license document, but changing it is not allowed.
  72.  
  73.  Preamble
  74. =========
  75.  
  76.   The license agreements of most software companies try to keep users
  77. at the mercy of those companies.  By contrast, our General Public
  78. License is intended to guarantee your freedom to share and change
  79. free software--to make sure the software is free for all its users. 
  80. The General Public License applies to the Free Software Foundation's
  81. software and to any other program whose authors commit to using it. 
  82. You can use it for your programs, too.
  83.  
  84.   When we speak of free software, we are referring to freedom, not
  85. price.  Specifically, the General Public License is designed to make
  86. sure that you have the freedom to give away or sell copies of free
  87. software, that you receive source code or can get it if you want it,
  88. that you can change the software or use pieces of it in new free
  89. programs; and that you know you can do these things.
  90.  
  91.   To protect your rights, we need to make restrictions that forbid
  92. anyone to deny you these rights or to ask you to surrender the rights.
  93. These restrictions translate to certain responsibilities for you if
  94. you distribute copies of the software, or if you modify it.
  95.  
  96.   For example, if you distribute copies of a such a program, whether
  97. gratis or for a fee, you must give the recipients all the rights that
  98. you have.  You must make sure that they, too, receive or can get the
  99. source code.  And you must tell them their rights.
  100.  
  101.   We protect your rights with two steps: (1) copyright the software,
  102. and (2) offer you this license which gives you legal permission to
  103. copy, distribute and/or modify the software.
  104.  
  105.   Also, for each author's protection and ours, we want to make certain
  106. that everyone understands that there is no warranty for this free
  107. software.  If the software is modified by someone else and passed on,
  108. we want its recipients to know that what they have is not the
  109. original, so that any problems introduced by others will not reflect
  110. on the original authors' reputations.
  111.  
  112.   The precise terms and conditions for copying, distribution and
  113. modification follow.
  114.  
  115.                           TERMS AND CONDITIONS
  116.  
  117.   1. This License Agreement applies to any program or other work
  118.      which contains a notice placed by the copyright holder saying it
  119.      may be distributed under the terms of this General Public
  120.      License.  The ``Program'', below, refers to any such program or
  121.      work, and a ``work based on the Program'' means either the
  122.      Program or any work containing the Program or a portion of it,
  123.      either verbatim or with modifications.  Each licensee is
  124.      addressed as ``you''.
  125.  
  126.   2. You may copy and distribute verbatim copies of the Program's
  127.      source code as you receive it, in any medium, provided that you
  128.      conspicuously and appropriately publish on each copy an
  129.      appropriate copyright notice and disclaimer of warranty; keep
  130.      intact all the notices that refer to this General Public License
  131.      and to the absence of any warranty; and give any other
  132.      recipients of the Program a copy of this General Public License
  133.      along with the Program.  You may charge a fee for the physical
  134.      act of transferring a copy.
  135.  
  136.   3. You may modify your copy or copies of the Program or any portion
  137.      of it, and copy and distribute such modifications under the
  138.      terms of Paragraph 1 above, provided that you also do the
  139.      following:
  140.  
  141.         * cause the modified files to carry prominent notices stating
  142.           that you changed the files and the date of any change; and
  143.  
  144.         * cause the whole of any work that you distribute or publish,
  145.           that in whole or in part contains the Program or any part
  146.           thereof, either with or without modifications, to be
  147.           licensed at no charge to all third parties under the terms
  148.           of this General Public License (except that you may choose
  149.           to grant warranty protection to some or all third parties,
  150.           at your option).
  151.  
  152.         * If the modified program normally reads commands
  153.           interactively when run, you must cause it, when started
  154.           running for such interactive use in the simplest and most
  155.           usual way, to print or display an announcement including an
  156.           appropriate copyright notice and a notice that there is no
  157.           warranty (or else, saying that you provide a warranty) and
  158.           that users may redistribute the program under these
  159.           conditions, and telling the user how to view a copy of this
  160.           General Public License.
  161.  
  162.         * You may charge a fee for the physical act of transferring a
  163.           copy, and you may at your option offer warranty protection
  164.           in exchange for a fee.
  165.  
  166.      Mere aggregation of another independent work with the Program
  167.      (or its derivative) on a volume of a storage or distribution
  168.      medium does not bring the other work under the scope of these
  169.      terms.
  170.  
  171.   4. You may copy and distribute the Program (or a portion or
  172.      derivative of it, under Paragraph 2) in object code or
  173.      executable form under the terms of Paragraphs 1 and 2 above
  174.      provided that you also do one of the following:
  175.  
  176.         * accompany it with the complete corresponding
  177.           machine-readable source code, which must be distributed
  178.           under the terms of Paragraphs 1 and 2 above; or,
  179.  
  180.         * accompany it with a written offer, valid for at least three
  181.           years, to give any third party free (except for a nominal
  182.           charge for the cost of distribution) a complete
  183.           machine-readable copy of the corresponding source code, to
  184.           be distributed under the terms of Paragraphs 1 and 2 above;
  185.           or,
  186.  
  187.         * accompany it with the information you received as to where
  188.           the corresponding source code may be obtained.  (This
  189.           alternative is allowed only for noncommercial distribution
  190.           and only if you received the program in object code or
  191.           executable form alone.)
  192.  
  193.      Source code for a work means the preferred form of the work for
  194.      making modifications to it.  For an executable file, complete
  195.      source code means all the source code for all modules it
  196.      contains; but, as a special exception, it need not include
  197.      source code for modules which are standard libraries that
  198.      accompany the operating system on which the executable file
  199.      runs, or for standard header files or definitions files that
  200.      accompany that operating system.
  201.  
  202.   5. You may not copy, modify, sublicense, distribute or transfer the
  203.      Program except as expressly provided under this General Public
  204.      License.  Any attempt otherwise to copy, modify, sublicense,
  205.      distribute or transfer the Program is void, and will
  206.      automatically terminate your rights to use the Program under
  207.      this License.  However, parties who have received copies, or
  208.      rights to use copies, from you under this General Public License
  209.      will not have their licenses terminated so long as such parties
  210.      remain in full compliance.
  211.  
  212.   6. By copying, distributing or modifying the Program (or any work
  213.      based on the Program) you indicate your acceptance of this
  214.      license to do so, and all its terms and conditions.
  215.  
  216.   7. Each time you redistribute the Program (or any work based on the
  217.      Program), the recipient automatically receives a license from
  218.      the original licensor to copy, distribute or modify the Program
  219.      subject to these terms and conditions.  You may not impose any
  220.      further restrictions on the recipients' exercise of the rights
  221.      granted herein.
  222.  
  223.   8. The Free Software Foundation may publish revised and/or new
  224.      versions of the General Public License from time to time.  Such
  225.      new versions will be similar in spirit to the present version,
  226.      but may differ in detail to address new problems or concerns.
  227.  
  228.      Each version is given a distinguishing version number.  If the
  229.      Program specifies a version number of the license which applies
  230.      to it and ``any later version'', you have the option of
  231.      following the terms and conditions either of that version or of
  232.      any later version published by the Free Software Foundation.  If
  233.      the Program does not specify a version number of the license,
  234.      you may choose any version ever published by the Free Software
  235.      Foundation.
  236.  
  237.   9. If you wish to incorporate parts of the Program into other free
  238.      programs whose distribution conditions are different, write to
  239.      the author to ask for permission.  For software which is
  240.      copyrighted by the Free Software Foundation, write to the Free
  241.      Software Foundation; we sometimes make exceptions for this.  Our
  242.      decision will be guided by the two goals of preserving the free
  243.      status of all derivatives of our free software and of promoting
  244.      the sharing and reuse of software generally.
  245.  
  246.                                    NO WARRANTY
  247.  
  248.  10. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  249.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  250.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  251.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM ``AS IS''
  252.      WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
  253.      INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  254.      MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE
  255.      ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS
  256.      WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE
  257.      COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  258.  
  259.  11. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  260.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  261.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  262.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  263.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  264.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS
  265.      OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  266.      YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH
  267.      ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  268.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  269.  
  270.                       END OF TERMS AND CONDITIONS
  271.  
  272. Appendix: How to Apply These Terms to Your New Programs
  273. =======================================================
  274.  
  275.   If you develop a new program, and you want it to be of the greatest
  276. possible use to humanity, the best way to achieve this is to make it
  277. free software which everyone can redistribute and change under these
  278. terms.
  279.  
  280.   To do so, attach the following notices to the program.  It is safest
  281. to attach them to the start of each source file to most effectively
  282. convey the exclusion of warranty; and each file should have at least
  283. the ``copyright'' line and a pointer to where the full notice is found.
  284.  
  285.      ONE LINE TO GIVE THE PROGRAM'S NAME AND A BRIEF IDEA OF WHAT IT DOES.
  286.      Copyright (C) 19YY  NAME OF AUTHOR
  287.      
  288.      This program is free software; you can redistribute it and/or modify
  289.      it under the terms of the GNU General Public License as published by
  290.      the Free Software Foundation; either version 1, or (at your option)
  291.      any later version.
  292.      
  293.      This program is distributed in the hope that it will be useful,
  294.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  295.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  296.      GNU General Public License for more details.
  297.      
  298.      You should have received a copy of the GNU General Public License
  299.      along with this program; if not, write to the Free Software
  300.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  301.  
  302.  Also add information on how to contact you by electronic and paper
  303. mail.
  304.  
  305. If the program is interactive, make it output a short notice like
  306. this when it starts in an interactive mode:
  307.  
  308.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  309.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
  310.      This is free software, and you are welcome to redistribute it
  311.      under certain conditions; type `show c' for details.
  312.  
  313.  The hypothetical commands `show w' and `show c' should show the
  314. appropriate parts of the General Public License.  Of course, the
  315. commands you use may be called something other than `show w' and
  316. `show c'; they could even be mouse-clicks or menu items--whatever
  317. suits your program.
  318.  
  319. You should also get your employer (if you work as a programmer) or
  320. your school, if any, to sign a ``copyright disclaimer'' for the
  321. program, if necessary.  Here a sample; alter the names:
  322.  
  323.      Yoyodyne, Inc., hereby disclaims all copyright interest in the
  324.      program `Gnomovision' (a program to direct compilers to make passes
  325.      at assemblers) written by James Hacker.
  326.      
  327.      SIGNATURE OF TY COON, 1 April 1989
  328.      Ty Coon, President of Vice
  329.  
  330. That's all there is to it!
  331.  
  332.  
  333. 
  334. File: gcc.info,  Node: Contributors,  Next: Boycott,  Prev: Copying,  Up: Top
  335.  
  336. Contributors to GNU CC
  337. **********************
  338.  
  339. In addition to Richard Stallman, several people have written parts of
  340. GNU CC.
  341.  
  342.    * The idea of using RTL and some of the optimization ideas came
  343.      from the U. of Arizona Portable Optimizer, written by Jack
  344.      Davidson and Christopher Fraser.  See ``Register Allocation and
  345.      Exhaustive Peephole Optimization'', Software Practice and
  346.      Experience 14 (9), Sept. 1984, 857-866.
  347.  
  348.    * Paul Rubin wrote most of the preprocessor.
  349.  
  350.    * Leonard Tower wrote parts of the parser, RTL generator, and RTL
  351.      definitions, and of the Vax machine description.
  352.  
  353.    * Ted Lemon wrote parts of the RTL reader and printer.
  354.  
  355.    * Jim Wilson implemented loop strength reduction and some other
  356.      loop optimizations.
  357.  
  358.    * Nobuyuki Hikichi of Software Research Associates, Tokyo,
  359.      contributed the support for the Sony NEWS machine.
  360.  
  361.    * Charles LaBrec contributed the support for the Integrated
  362.      Solutions 68020 system.
  363.  
  364.    * Michael Tiemann of MCC wrote most of the description of the
  365.      National Semiconductor 32000 series cpu.  He also wrote the code
  366.      for inline function integration and for the SPARC cpu and
  367.      Motorola 88000 cpu and part of the Sun FPA support.
  368.  
  369.    * Jan Stein of the Chalmers Computer Society provided support for
  370.      Genix, as well as part of the 32000 machine description.
  371.  
  372.    * Randy Smith finished the Sun FPA support.
  373.  
  374.    * Robert Brown implemented the support for Encore 32000 systems.
  375.  
  376.    * David Kashtan of SRI adapted GNU CC to the Vomit-Making System.
  377.  
  378.    * Alex Crain provided changes for the 3b1.
  379.  
  380.    * Greg Satz and Chris Hanson assisted in making GNU CC work on
  381.      HP-UX for the 9000 series 300.
  382.  
  383.    * William Schelter did most of the work on the Intel 80386 support.
  384.  
  385.    * Christopher Smith did the port for Convex machines.
  386.  
  387.    * Paul Petersen wrote the machine description for the Alliant FX/8.
  388.  
  389.    * Alain Lichnewsky ported GNU CC to the Mips cpu.
  390.  
  391.    * Devon Bowen, Dale Wiles and Kevin Zachmann ported GNU CC to the
  392.      Tahoe.
  393.  
  394.    * Jonathan Stone wrote the machine description for the Pyramid
  395.      computer.
  396.  
  397.  
  398. 
  399. File: gcc.info,  Node: Boycott,  Next: Options,  Prev: Contributors,  Up: Top
  400.  
  401. Protect Your Freedom--Fight ``Look And Feel''
  402. *********************************************
  403.  
  404. Ashton-Tate, Apple, Lotus and Xerox are trying to create a new form
  405. of legal monopoly: a copyright on a class of user interfaces.  These
  406. monopolies would cause serious problems for users and developers of
  407. computer software and systems.
  408.  
  409. Until three years ago, the law seemed clear: no one could restrict
  410. others from using a user interface; programmers were free to
  411. implement any interface they chose.  Imitating interfaces, sometimes
  412. with changes, was standard practice in the computer field.  The
  413. interfaces we know evolved gradually in this way; for example, the
  414. Macintosh user interface drew ideas from the Xerox interface, which
  415. in turn drew on work done at Stanford and SRI.  1-2-3 imitated
  416. VisiCalc, and dBase imitated a database program from JPL.
  417.  
  418. Most computer companies, and nearly all computer users, were happy
  419. with this state of affairs.  The companies that are suing say it does
  420. not offer ``enough incentive'' to develop their products, but they
  421. must have considered it ``enough'' when they made their decision to
  422. do so.  It seems they are not satisfied with the opportunity to
  423. continue to compete in the marketplace--not even with a head start.
  424.  
  425. If Xerox, Lotus, Apple and Ashton-Tate are permitted to make law
  426. through the courts, the precedent will hobble the software industry:
  427.  
  428.    * Gratuitous incompatibilites will burden users.  Imagine if each
  429.      car manufacturer had to arrange the pedals in a different order.
  430.  
  431.    * Software will become and remain more expensive.  Users will be
  432.      ``locked in'' to proprietary interfaces, for which there is no
  433.      real competition.
  434.  
  435.    * Large companies have an unfair advantage wherever lawsuits
  436.      become commonplace.  Since they can easily afford to sue, they
  437.      can intimidate small companies with threats even when they don't
  438.      really have a case.
  439.  
  440.    * User interface improvements will come slower, since incremental
  441.      evolution through creative imitation will no longer be permitted.
  442.  
  443.    * Even Apple, etc., will find it harder to make improvements if
  444.      they can no longer adapt the good ideas that others introduce,
  445.      for fear of weakening their own legal positions.  Some users
  446.      suggest that this stagnation may already have started.
  447.  
  448. Here are some things you can do to protect your freedom to write
  449. programs:
  450.  
  451.    * Don't buy from Xerox, Lotus, Apple or Ashton-Tate.  Buy from
  452.      their competitors or from the defendants they are suing.
  453.  
  454.    * Don't develop software to work with the systems made by these
  455.      companies.
  456.  
  457.    * Port your existing software to competing systems, so that you
  458.      encourage users to switch.
  459.  
  460.    * Write letters to company presidents to let them know their
  461.      conduct is unacceptable.
  462.  
  463.    * Tell your friends and colleagues about this issue and how it
  464.      threatens to ruin the computer industry.
  465.  
  466.    * Join the League for Programming Freedom.  Phone (617) 492-0023
  467.      or write to:
  468.  
  469.           League for Programming Freedom
  470.           1 Kendall Square #143
  471.           P.O. Box 9171
  472.           Cambridge, MA 02139       league@prep.ai.mit.edu
  473.  
  474.    * Above all, don't work for the look-and-feel plaintiffs, and
  475.      don't accept contracts from them.
  476.  
  477.    * Write to or phone your elected representatives to show them how
  478.      important this issue is.
  479.  
  480.           Senator So and So       Representative So and So
  481.           United States Senate    House of Representatives
  482.           Washington, DC 20510    Washington, DC 20515
  483.  
  484.      You can phone senators and representatives at (202) 225-3121.
  485.  
  486. Express your opinion!  You can make a difference.
  487.  
  488.  
  489.